package com.huawei.hms.framework.network.restclient.hwhttp.cronet;

import com.huawei.hms.framework.network.restclient.hianalytics.BaseRequestFinishedInfo;
import com.huawei.hms.framework.network.restclient.hianalytics.EditableMetrics;
import com.huawei.hms.framework.network.restclient.hianalytics.EditableMetricsTime;
import com.huawei.hms.framework.network.restclient.hwhttp.HttpContants;

public class CronetRequestFinishedInfo extends BaseRequestFinishedInfo {
    private static final String TAG = "CronetRequestFinishedInfo";
    private EditableMetrics metrics = new EditableMetrics();
    private EditableMetricsTime metricsTime = new CronetMetricsTime();

    class CronetMetricsTime extends EditableMetricsTime {
        private long totalTime;
        private long ttfb;

        CronetMetricsTime() {
        }

        public void setTtfb(long j) {
            this.ttfb = j;
        }

        public void setTotalTime(long j) {
            this.totalTime = j;
        }

        public long getTotalTime() {
            return this.totalTime;
        }

        public long getTtfb() {
            return this.ttfb;
        }
    }

    CronetRequestFinishedInfo() {
    }

    public EditableMetricsTime getMetricsTime() {
        return this.metricsTime;
    }

    public EditableMetrics getMetrics() {
        return this.metrics;
    }

    public EditableMetricsTime getMetricsRealTime() {
        return this.metricsTime;
    }

    public String getNetworkSdkType() {
        return HttpContants.TYPE_CRONET;
    }
}
